#-Desc: xxx模块
#-Author: fxl0206

#-b to set sudo mode

init: #初始化
	${ansiblePlay} $(call wraptags,init)

install: #安装
	${ansiblePlay} $(call wraptags,install)

copy: #复制镜像 #S=? //sourceImage,T=? //targetImage
	$(call chkNotNull,S,${S})
	$(call chkNotNull,T,${T})
	${ansiblePlay} -e "sourceImage=${S}" -e "targetImage=${T}"  $(call wraptags,copy)

repo: #同步镜像仓库 #S=? //srouce,T=? //target
	$(call chkNotNull,S,${S})
	$(call chkNotNull,T,${T})
	${ansiblePlay}  -e "sourceImage=${S}" -e "targetImage=${T}"  $(call wraptags,repo)

uninstall: #卸载
	${ansiblePlay} $(call wraptags,uninstall)

build:  #构建拷贝镜像，方便容器化执行 #
	${ansiblePlay} $(call wraptags,build)

start:  #启动一个coper容器 #
	${ansiblePlay} $(call wraptags,start)